
#region Using Statements

    using System;
    using System.Collections;
    using System.Diagnostics;
    using System.IO;
    using System.Collections.ObjectModel;
    using System.Collections.Generic;
    using System.Linq;

    using System.Xml.Linq;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Content.Pipeline;
    using Microsoft.Xna.Framework.Content.Pipeline.Graphics;

#endregion

namespace HumanElement.Xna.ContentPipeline
{
    using TImport = System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement>;

    /// <summary>
    /// This class will be instantiated by the XNA Framework Content Pipeline
    /// to import a file from disk into the specified type, TImport.
    /// 
    /// This should be part of a Content Pipeline Extension Library project.
    /// </summary>
    [ContentImporter(".xml", ".xna", ".text", "rfx", ".proj", ".effect" , 
                        DisplayName = "Linq to Xna Importer",
                        DefaultProcessor = "HumanElement.Xna.ContentPipeline.RenderMonkey.RenderMonkeyProcessor, ")]
    public class XmlLinqImporter : ContentImporter<TImport>
    {
        public override TImport Import(string filename, ContentImporterContext context)
        {
            var xml = XDocument.Load(filename);

            return xml.Elements();
        }
    }      
}
